﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using InventorySys.view;

namespace InventorySys
{
    public partial class Form1 : Form
    {
        private String address;
        public String Address {
            get {
                return address;
            }
            set {
                address = value;
            }
        }

        private String company;
        public String Company {
            get {
                return company;
            }
            set {
                company = value;
            }
        }
        
        public Form1()
        {
            InitializeComponent();
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            StockEntry stockEntryForm = new StockEntry();
            stockEntryForm.Show(this);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Customer customerForm = new Customer();
            customerForm.decidePageMode("addMode", "");
            customerForm.Show(this);
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Supplier supplierForm = new Supplier();
            supplierForm.decidePageMode("addMode", "");
            supplierForm.Show(this);
        }

        private void button7_Click(object sender, EventArgs e)
        {
            Customize customizeForm = new Customize();
            customizeForm.Show(this);
        }

        private void button6_Click(object sender, EventArgs e)
        {
            InvoiceForm invoiceForm = new InvoiceForm();
            invoiceForm.Show(this);
        }

        private void BtnSupplerInfo_Click(object sender, EventArgs e)
        {
            SupplierInfo spInfo = new SupplierInfo();
            spInfo.Show(this);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            StockInfo stockInfo = new StockInfo();
            stockInfo.Show(this);
        }

        private void addNewToolStripMenuItem4_Click(object sender, EventArgs e)
        {
            StockEntry stockEntryForm = new StockEntry();
            stockEntryForm.Show(this);
        }

        private void customizeToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Customize customizeForm = new Customize();
            customizeForm.Show(this);
        }

        private void stockListToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            StockInfo stockInfo = new StockInfo();
            stockInfo.Show(this);
        }

        private void addNewToolStripMenuItem5_Click(object sender, EventArgs e)
        {
            Customer customerForm = new Customer();
            customerForm.decidePageMode("addMode", "");
            customerForm.Show(this);
        }

        private void addNewToolStripMenuItem6_Click(object sender, EventArgs e)
        {
            Supplier supplierForm = new Supplier();
            supplierForm.decidePageMode("addMode", "");
            supplierForm.Show(this);
        }

        private void supplierListToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            SupplierInfo spInfo = new SupplierInfo();
            spInfo.Show(this);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            CustomerInfo customerInfo = new CustomerInfo();
            customerInfo.Show(this);
        }

        private void customerListToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            CustomerInfo customerInfo = new CustomerInfo();
            customerInfo.Show(this);
        }
    }
}
